<template>
  <div>
    <div class="information">
      <div class="list">
        <span>0.00</span>元
        <div>我的余额</div>
      </div>
      <div class="line"></div>
      <div class="list">
        <span>0</span>个
        <div>我的优惠</div>
      </div>
      <div class="line"></div>
      <div class="list">
        <span>0</span>分
        <div>我的积分</div>
      </div>
    </div>
    <div class="down">
      <div>我的信息</div>
      <div>积分商城</div>
      <div class="no-line">会员卡</div>
    </div>
    <div class="down-next">
      <div class="next-line" @click="car">我的购物车</div>
      <div>下载购物app</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "information",
  methods: {
    car () {
      // 跳转到购物车页面
      this.$router.push("/cart");
    }
  }
};
</script>

<style scoped>
.information {
  width: 100%;
  height: 90px;
  line-height: 22px;

  border-bottom: 10px solid #ccc;

  display: flex;
  justify-content: space-around;
}
.list {
  line-height: 22px;
  margin-top: 20px;
  text-align: center;
}
.list span {
  color: red;
  font-size: 22px;
}
.line {
  border-left: 1px solid #ccc;
}
.down,
.down-next {
  padding-left: 20px;
  padding-top: 10px;
  line-height: 33px;
  font-size: 16px;
  color: black;
}
.down {
  border-bottom: 10px solid #ccc;
}
.down div {
  border-bottom: 1px solid #ccc;
}
.down .no-line {
  border-bottom: 0;
}
.next-line {
  border-bottom: 1px solid #ccc;
}
</style>
